package observer;

public class ObserverEntityTwo extends Observer{
    public ObserverEntityTwo(Subject subject) {
        this.subject = subject;
        this.subject.attache(this);
    }
    @Override
    public void update() {
        System.out.println("two:"+Integer.toBinaryString(subject.getState()));
    }
}
